/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * Copyright(C) Chris2018998,All rights reserved.
 *
 * Project owner contact:Chris2018998@tom.com.
 *
 * Project Licensed under Apache License v2.0
 */
package org.stone.test.beecp.objects.threads;

import java.util.concurrent.locks.LockSupport;

/**
 * @author Chris Liao
 */
public class ParkDelayThread extends Thread {
    private final long parkNanos;

    public ParkDelayThread(long parkNanos) {
        this.parkNanos = parkNanos;
    }

    public void run() {
        LockSupport.parkNanos(parkNanos);
    }
}
